package com.lin.missyou.dto;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.*;

@Getter
@Setter
@Builder
public class RegisterDTO {
    @Length(min=2,max=10,message = "{register.nickname}")
    private String nickname;
    @Length(min=4,max=15,message = "{register.qq}")
    private String qqNumber;
    private String mobile;
    @Length(min=1,max=20,message = "{register.alipay_name}")
    private String alipayName;
    @Length(min=5,max=30,message = "{register.alipay_account}")
    private String alipayAccount;
    @NotBlank
    private String speciality;
    @Length(min=0,max=140,message = "{register.description}")
    private String description;
}
